package com.yg.item.feign;

import com.yg.item.pojo.vo.ImageVo;
import com.yg.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient("base-service")
public interface ImageFeignService {
    @GetMapping("/base/image/getImageUrl/{id}")
    public Result getImageUrl(@PathVariable Long id);

    @GetMapping("getAllImage")
    public List<ImageVo> getAllImage();
}
